<!-- <template>
	<view class="container">
		<view class="box top-left"></view>
		<view class="box top-right"></view>
		<view class="diamond"></view>
		<view class="box bottom-left"></view>
		<view class="box bottom-right"></view>
	</view>
</template>

<style>
	.container {
		width: 392px;
		height: 266px;
		background-color: #f9f9f9;
		position: relative;
		border-radius: 20px;
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.box {
		width: 142px;
		height: 79px;
		background-color: transparent;
		border: 1px solid #000;
		position: absolute;
	}

	.top-left {
		top: 17px;
		left: 20px;
	}

	.top-right {
		top: 14px;
		right: 20px;
	}

	.bottom-left {
		bottom: 15px;
		left: 22px;
	}

	.bottom-right {
		bottom: 13px;
		right: 20px;
	}

	.diamond {
		width: 96px;
		height: 96px;
		background-color: transparent;
		border: 1px solid #000;
		transform: rotate(45deg);
		position: absolute;
	}
</style> -->
<template>
	<view>
		<image class="fullscreen-image"
			src="https://i0.hdslb.com/bfs/archive/8369c897f85eebd4de2b9ad8f19ca7fef187c1e6.jpg"></image>
	</view>
	<view class="container">
		<!-- 四个“购票”文字 -->
		<view class="ticket top-left">购票</view>
		<view class="ticket top-right">文创</view>
		<view class="ticket bottom-left">纹样</view>
		<view class="ticket bottom-right">路线</view>

		<!-- 中间的菱形“文物展示”区域 -->
		<view class="diamond">
			<view class="diamond-text">
				<text>文物</text>
				<text>展示</text>
			</view>
		</view>
	</view>
</template>

<script>
	import piaoyiSwiper from '@/components/piaoyi-swiper/piaoyi-swiper.vue';
	import {
		url
	} from '@/utils/request.js';
	import {
		jerrybanner
	} from '@/components/jerry-banner/jerry-banner.vue'
	import {
		onLoad,
		onUnload
	} from '@dcloudio/uni-app';
	export default {
		components: {
			piaoyiSwiper,
		},
		data() {
			return {
				panelData: {
					list: [{
							src: 'https://m.firstui.cn/static/images/common/img_logo.png',
							title: 'First UI组件库',
							desc: 'First UI组件库，是基于uni-app开发的一款轻量、全面可靠的跨平台移动端组件库。',
							source: '￥18',
							time: '2021-08-09'
						}, {
							src: 'https://m.firstui.cn/static/images/common/img_logo.png',
							title: 'First UI跨平台UI组件库',
							desc: 'First UI组件库，是基于uni-app开发的一款轻量、全面可靠的跨平台移动端组件库。',
							source: '￥18',
							time: '2021-08-09',

						},
						{
							src: 'https://m.firstui.cn/static/images/common/img_logo.png',
							title: 'First UI跨平台UI组件库',
							desc: 'First UI组件库，是基于uni-app开发的一款轻量、全面可靠的跨平台移动端组件库。',
							source: '￥18',
							time: '2021-08-09',

						},
						{
							src: 'https://m.firstui.cn/static/images/common/img_logo.png',
							title: 'First UI跨平台UI组件库',
							desc: 'First UI组件库，是基于uni-app开发的一款轻量、全面可靠的跨平台移动端组件库。',
							source: '￥18',
							time: '2021-08-09',

						},
						{
							src: 'https://m.firstui.cn/static/images/common/img_logo.png',
							title: 'First UI跨平台UI组件库',
							desc: 'First UI组件库，是基于uni-app开发的一款轻量、全面可靠的跨平台移动端组件库。',
							source: '￥18',
							time: '2021-08-09',

						},
						{
							src: 'https://m.firstui.cn/static/images/common/img_logo.png',
							title: 'First UI跨平台UI组件库',
							desc: 'First UI组件库，是基于uni-app开发的一款轻量、全面可靠的跨平台移动端组件库。',
							source: '￥18',
							time: '2021-08-09',

						}
					]
				},
				imgList: [
					'https://bpic.588ku.com/illus_water_img/21/02/01/7a0c6fb4e2842b635dccbc56ca8f1514.jpg!/fw/750/quality/99/unsharp/true/compress/true',
					'https://mz2.eastday.com/images/17297855/56cddfc96c8145889ed53b2a44cce9fb.jpeg',
					'https://img2.gujianchina.cn/201905/08/141817456876.png',
				],
			}
		},
		methods: {

		}
	}
</script>

<style>
	.fullscreen-image {
		width: 100vw;
		height: 200px;
		object-fit: cover;
		/* 确保图片填满屏幕且保持比例 */
	}

	.container {
		background-color: #334a40;
		
		width: 100vw;
		height: 30vh;
		display: flex;
		justify-content: center;
		align-items: center;
		position: relative;
	}

	.ticket {
		font-size: 96rpx;
		color: #bda26b;
		/* font-weight: bold; */
		position: absolute;
	}

	.top-left {
		border: 1px solid red;
		top: 0%;
		left: 8%;
	}

	.top-right {
		top: 0%;
		border: 1px solid red;
		right: 8%;
	}

	.bottom-left {
		border: 1px solid red;
		bottom: 8%;
		left: 8%;
	}

	.bottom-right {
		border: 1px solid red;
		bottom: 8%;
		right: 8%;
	}

	.diamond {
		width: 300rpx;
		background: url('../../static/logo.png') no-repeat;
		height: 300rpx;
		display: flex;
		align-items: center;
		justify-content: center;
		border: 2rpx solid black;
		transform: rotate(45deg);
	}

	.diamond-text {
		transform: rotate(-45deg);
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		font-size: 90rpx;
		font-weight: bold;
		line-height: 1.2;
		/* 调整行距以确保文字垂直对齐 */
	}
</style>